package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProgrammeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ProgrammeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPrnoIsNull() {
            addCriterion("prno is null");
            return (Criteria) this;
        }

        public Criteria andPrnoIsNotNull() {
            addCriterion("prno is not null");
            return (Criteria) this;
        }

        public Criteria andPrnoEqualTo(String value) {
            addCriterion("prno =", value, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoNotEqualTo(String value) {
            addCriterion("prno <>", value, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoGreaterThan(String value) {
            addCriterion("prno >", value, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoGreaterThanOrEqualTo(String value) {
            addCriterion("prno >=", value, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoLessThan(String value) {
            addCriterion("prno <", value, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoLessThanOrEqualTo(String value) {
            addCriterion("prno <=", value, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoLike(String value) {
            addCriterion("prno like", value, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoNotLike(String value) {
            addCriterion("prno not like", value, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoIn(List<String> values) {
            addCriterion("prno in", values, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoNotIn(List<String> values) {
            addCriterion("prno not in", values, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoBetween(String value1, String value2) {
            addCriterion("prno between", value1, value2, "prno");
            return (Criteria) this;
        }

        public Criteria andPrnoNotBetween(String value1, String value2) {
            addCriterion("prno not between", value1, value2, "prno");
            return (Criteria) this;
        }

        public Criteria andEnoIsNull() {
            addCriterion("eno is null");
            return (Criteria) this;
        }

        public Criteria andEnoIsNotNull() {
            addCriterion("eno is not null");
            return (Criteria) this;
        }

        public Criteria andEnoEqualTo(String value) {
            addCriterion("eno =", value, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoNotEqualTo(String value) {
            addCriterion("eno <>", value, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoGreaterThan(String value) {
            addCriterion("eno >", value, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoGreaterThanOrEqualTo(String value) {
            addCriterion("eno >=", value, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoLessThan(String value) {
            addCriterion("eno <", value, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoLessThanOrEqualTo(String value) {
            addCriterion("eno <=", value, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoLike(String value) {
            addCriterion("eno like", value, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoNotLike(String value) {
            addCriterion("eno not like", value, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoIn(List<String> values) {
            addCriterion("eno in", values, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoNotIn(List<String> values) {
            addCriterion("eno not in", values, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoBetween(String value1, String value2) {
            addCriterion("eno between", value1, value2, "eno");
            return (Criteria) this;
        }

        public Criteria andEnoNotBetween(String value1, String value2) {
            addCriterion("eno not between", value1, value2, "eno");
            return (Criteria) this;
        }

        public Criteria andErnuIsNull() {
            addCriterion("ernu is null");
            return (Criteria) this;
        }

        public Criteria andErnuIsNotNull() {
            addCriterion("ernu is not null");
            return (Criteria) this;
        }

        public Criteria andErnuEqualTo(String value) {
            addCriterion("ernu =", value, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuNotEqualTo(String value) {
            addCriterion("ernu <>", value, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuGreaterThan(String value) {
            addCriterion("ernu >", value, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuGreaterThanOrEqualTo(String value) {
            addCriterion("ernu >=", value, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuLessThan(String value) {
            addCriterion("ernu <", value, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuLessThanOrEqualTo(String value) {
            addCriterion("ernu <=", value, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuLike(String value) {
            addCriterion("ernu like", value, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuNotLike(String value) {
            addCriterion("ernu not like", value, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuIn(List<String> values) {
            addCriterion("ernu in", values, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuNotIn(List<String> values) {
            addCriterion("ernu not in", values, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuBetween(String value1, String value2) {
            addCriterion("ernu between", value1, value2, "ernu");
            return (Criteria) this;
        }

        public Criteria andErnuNotBetween(String value1, String value2) {
            addCriterion("ernu not between", value1, value2, "ernu");
            return (Criteria) this;
        }

        public Criteria andPrtitleIsNull() {
            addCriterion("prtitle is null");
            return (Criteria) this;
        }

        public Criteria andPrtitleIsNotNull() {
            addCriterion("prtitle is not null");
            return (Criteria) this;
        }

        public Criteria andPrtitleEqualTo(String value) {
            addCriterion("prtitle =", value, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleNotEqualTo(String value) {
            addCriterion("prtitle <>", value, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleGreaterThan(String value) {
            addCriterion("prtitle >", value, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleGreaterThanOrEqualTo(String value) {
            addCriterion("prtitle >=", value, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleLessThan(String value) {
            addCriterion("prtitle <", value, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleLessThanOrEqualTo(String value) {
            addCriterion("prtitle <=", value, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleLike(String value) {
            addCriterion("prtitle like", value, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleNotLike(String value) {
            addCriterion("prtitle not like", value, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleIn(List<String> values) {
            addCriterion("prtitle in", values, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleNotIn(List<String> values) {
            addCriterion("prtitle not in", values, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleBetween(String value1, String value2) {
            addCriterion("prtitle between", value1, value2, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrtitleNotBetween(String value1, String value2) {
            addCriterion("prtitle not between", value1, value2, "prtitle");
            return (Criteria) this;
        }

        public Criteria andPrcontentIsNull() {
            addCriterion("prcontent is null");
            return (Criteria) this;
        }

        public Criteria andPrcontentIsNotNull() {
            addCriterion("prcontent is not null");
            return (Criteria) this;
        }

        public Criteria andPrcontentEqualTo(String value) {
            addCriterion("prcontent =", value, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentNotEqualTo(String value) {
            addCriterion("prcontent <>", value, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentGreaterThan(String value) {
            addCriterion("prcontent >", value, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentGreaterThanOrEqualTo(String value) {
            addCriterion("prcontent >=", value, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentLessThan(String value) {
            addCriterion("prcontent <", value, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentLessThanOrEqualTo(String value) {
            addCriterion("prcontent <=", value, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentLike(String value) {
            addCriterion("prcontent like", value, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentNotLike(String value) {
            addCriterion("prcontent not like", value, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentIn(List<String> values) {
            addCriterion("prcontent in", values, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentNotIn(List<String> values) {
            addCriterion("prcontent not in", values, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentBetween(String value1, String value2) {
            addCriterion("prcontent between", value1, value2, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrcontentNotBetween(String value1, String value2) {
            addCriterion("prcontent not between", value1, value2, "prcontent");
            return (Criteria) this;
        }

        public Criteria andPrdateIsNull() {
            addCriterion("prdate is null");
            return (Criteria) this;
        }

        public Criteria andPrdateIsNotNull() {
            addCriterion("prdate is not null");
            return (Criteria) this;
        }

        public Criteria andPrdateEqualTo(Date value) {
            addCriterion("prdate =", value, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateNotEqualTo(Date value) {
            addCriterion("prdate <>", value, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateGreaterThan(Date value) {
            addCriterion("prdate >", value, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateGreaterThanOrEqualTo(Date value) {
            addCriterion("prdate >=", value, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateLessThan(Date value) {
            addCriterion("prdate <", value, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateLessThanOrEqualTo(Date value) {
            addCriterion("prdate <=", value, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateIn(List<Date> values) {
            addCriterion("prdate in", values, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateNotIn(List<Date> values) {
            addCriterion("prdate not in", values, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateBetween(Date value1, Date value2) {
            addCriterion("prdate between", value1, value2, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrdateNotBetween(Date value1, Date value2) {
            addCriterion("prdate not between", value1, value2, "prdate");
            return (Criteria) this;
        }

        public Criteria andPrpriceIsNull() {
            addCriterion("prprice is null");
            return (Criteria) this;
        }

        public Criteria andPrpriceIsNotNull() {
            addCriterion("prprice is not null");
            return (Criteria) this;
        }

        public Criteria andPrpriceEqualTo(String value) {
            addCriterion("prprice =", value, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceNotEqualTo(String value) {
            addCriterion("prprice <>", value, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceGreaterThan(String value) {
            addCriterion("prprice >", value, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceGreaterThanOrEqualTo(String value) {
            addCriterion("prprice >=", value, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceLessThan(String value) {
            addCriterion("prprice <", value, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceLessThanOrEqualTo(String value) {
            addCriterion("prprice <=", value, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceLike(String value) {
            addCriterion("prprice like", value, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceNotLike(String value) {
            addCriterion("prprice not like", value, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceIn(List<String> values) {
            addCriterion("prprice in", values, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceNotIn(List<String> values) {
            addCriterion("prprice not in", values, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceBetween(String value1, String value2) {
            addCriterion("prprice between", value1, value2, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrpriceNotBetween(String value1, String value2) {
            addCriterion("prprice not between", value1, value2, "prprice");
            return (Criteria) this;
        }

        public Criteria andPrbuynumIsNull() {
            addCriterion("prbuynum is null");
            return (Criteria) this;
        }

        public Criteria andPrbuynumIsNotNull() {
            addCriterion("prbuynum is not null");
            return (Criteria) this;
        }

        public Criteria andPrbuynumEqualTo(String value) {
            addCriterion("prbuynum =", value, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumNotEqualTo(String value) {
            addCriterion("prbuynum <>", value, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumGreaterThan(String value) {
            addCriterion("prbuynum >", value, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumGreaterThanOrEqualTo(String value) {
            addCriterion("prbuynum >=", value, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumLessThan(String value) {
            addCriterion("prbuynum <", value, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumLessThanOrEqualTo(String value) {
            addCriterion("prbuynum <=", value, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumLike(String value) {
            addCriterion("prbuynum like", value, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumNotLike(String value) {
            addCriterion("prbuynum not like", value, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumIn(List<String> values) {
            addCriterion("prbuynum in", values, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumNotIn(List<String> values) {
            addCriterion("prbuynum not in", values, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumBetween(String value1, String value2) {
            addCriterion("prbuynum between", value1, value2, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrbuynumNotBetween(String value1, String value2) {
            addCriterion("prbuynum not between", value1, value2, "prbuynum");
            return (Criteria) this;
        }

        public Criteria andPrlikesIsNull() {
            addCriterion("prlikes is null");
            return (Criteria) this;
        }

        public Criteria andPrlikesIsNotNull() {
            addCriterion("prlikes is not null");
            return (Criteria) this;
        }

        public Criteria andPrlikesEqualTo(String value) {
            addCriterion("prlikes =", value, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesNotEqualTo(String value) {
            addCriterion("prlikes <>", value, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesGreaterThan(String value) {
            addCriterion("prlikes >", value, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesGreaterThanOrEqualTo(String value) {
            addCriterion("prlikes >=", value, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesLessThan(String value) {
            addCriterion("prlikes <", value, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesLessThanOrEqualTo(String value) {
            addCriterion("prlikes <=", value, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesLike(String value) {
            addCriterion("prlikes like", value, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesNotLike(String value) {
            addCriterion("prlikes not like", value, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesIn(List<String> values) {
            addCriterion("prlikes in", values, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesNotIn(List<String> values) {
            addCriterion("prlikes not in", values, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesBetween(String value1, String value2) {
            addCriterion("prlikes between", value1, value2, "prlikes");
            return (Criteria) this;
        }

        public Criteria andPrlikesNotBetween(String value1, String value2) {
            addCriterion("prlikes not between", value1, value2, "prlikes");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}